package com.zqq.user.service.api

import com.zqq.baselibrary.http.rx.BaseResp
import com.zqq.user.service.bean.*
import retrofit2.http.Body
import retrofit2.http.POST
import rx.Observable

/**
 * 用户相关 接口
 * wc
 * @author zqq on 2018/7/26
 */
interface UserApi {

    /* 1. 用户注册*/
    @POST("userCenter/register")
    fun register(@Body req: RegisterReq): Observable<BaseResp<String>>

    /* 2. 用户登录*/
    @POST("userCenter/login")
    fun login(@Body req: LoginReq): Observable<BaseResp<UserInfo>>

    /* 3.编辑用户资料 */
    @POST("userCenter/editUser")
    fun editUser(@Body req: EditUserReq): Observable<BaseResp<UserInfo>>

    /* 忘记密码 */
    @POST("userCenter/forgetPwd")
    fun forgetPwd(@Body req: ForgetPwdReq): Observable<BaseResp<String>>

    /*重置密码*/
    @POST("userCenter/resetPwd")
    fun resetPwd(@Body req: ResetPwdReq): Observable<BaseResp<String>>


}